<?php 
$v = strip_tags($_GET['v']);

if (!isset($v)) die("Falscher aufruf");
$text = $v;

include ("config.php");

/**
* Bild generieren
*/

$image = ImageCreateFromPNG($hintergrund);
// Textfarbe
sscanf($textfarbe, "%2x%2x%2x", $red, $green, $blue);
$textfarbe = ImageColorAllocate($image,$red,$green,$blue);
// Rahmenfarbe
sscanf($rahmen, "%2x%2x%2x", $red, $green, $blue);
$rahmen = ImageColorAllocate($image,$red,$green,$blue);
// Header senden
header('Content-type: image/png');
imagettftext($image, $ttfsize2, $angle, $t_x2, $t_y2, $rahmen, $ttf, $text);
imagettftext($image, $ttfsize, $angle, $t_x, $t_y, $textfarbe, $ttf, $text);
imagepng($image);
imagedestroy($image);

?> 